ADD_DEFINITIONS(-D_REENTRANT=1)

FIND_LIBRARY(cxcore cxcore)  
FIND_LIBRARY(cv cv)
FIND_LIBRARY(highgui highgui)
FIND_LIBRARY(cvaux cvaux)
FIND_LIBRARY(tao TAO_CosNaming_Serv)
LINK_LIBRARIES(${cxcore} ${cv} ${highgui} ${cvaux} ${tao})

FIND_PATH(cv_include opencv/highgui.h)
FIND_PATH(tao_include tao/ORB.h)
FIND_PATH(orb_svc_include orbsvcs/orbsvcs/CosNamingC.h)
INCLUDE_DIRECTORIES(
	${cv_include}/opencv 
	${tao_include}/tao 
	${orb_svc_include}/orbsvcs)

ADD_EXECUTABLE(simpleclient 
	SimpleClient.cpp CommunicationC.cpp )

ADD_EXECUTABLE(server
	Server.cpp CommunicationC.cpp CommunicationS.cpp)

ADD_EXECUTABLE(videoclient 
	VideoClient.cpp CommunicationC.cpp )

ADD_EXECUTABLE(videoserver
	VideoServer.cpp CommunicationC.cpp CommunicationS.cpp)

